
import httpRequest from '@/utils/httpRequest'
// 列表
export function getList (data) {
    return httpRequest({
        url: '/warn/warnTenant/list',
        method: 'get',
        params: data
    })
}

// 详情
export function getById (data) {
    return httpRequest({
        url: '/warn/warnTenant',
        method: 'get',
        params: data
    })
}
// 删除
export function del (data) {
    return httpRequest({
        url: '/warn/warnTenant/delete',
        method: 'post',
        data: data
    })
}
// 新增或修改
export function save (data) {
    return httpRequest({
        url: '/warn/warnTenant',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}

// 修改状态
export function updateState (data) {
    return httpRequest({
        url: '/warn/warnTenant/updateStatus',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}

// 模糊匹配租户
export function getSearchlist (params) {
  return httpRequest({
    url: '/tenant/tenant/searchlist',
    method: 'get',
    params: params
  })
}
